﻿namespace WPHttpServer
{
    public static class StandartHttpMessagesFactory
    {
        static StandartHttpMessagesFactory()
        {
            Error404NotFound = new HttpResponse(HttpStatusCode.NotFound)
            {
                Content = new HtmlResponseContentProvider("<h1>404 - Not Found</h1>")
            };

            Error500InternalServerError = new HttpResponse(HttpStatusCode.InternalServerError)
            {
                Content = new HtmlResponseContentProvider("<h1>500 - Internal Server Error</h1>")
            };
        }

        public static HttpResponse Error404NotFound { get; private set; }

        public static HttpResponse Error500InternalServerError { get; private set; }
    }
}
